import request from '@/utils/request'

// 查询元件列表
export function listProbeComponent(query) {
  return request({
    url: '/system/probeComponent/list',
    method: 'get',
    params: query
  })
}

// 查询元件详细
export function getProbeComponent(id) {
  return request({
    url: '/system/probeComponent/' + id,
    method: 'get'
  })
}

// 新增元件
export function addProbeComponent(data) {
  return request({
    url: '/system/probeComponent',
    method: 'post',
    data: data
  })
}

// 修改元件
export function updateProbeComponent(data) {
  return request({
    url: '/system/probeComponent',
    method: 'put',
    data: data
  })
}

// 删除元件
export function delProbeComponent(id) {
  return request({
    url: '/system/probeComponent/' + id,
    method: 'delete'
  })
}
